﻿using System;
using Microsoft.XmlEditor;
using System.Windows.Controls;
using CodeCounsel.SharePoint.RibbonDesigner.View;
using CodeCounsel.SharePoint.RibbonDesigner.ViewModel;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Shell;
using CodeCounsel.SharePoint.RibbonDesigner.Model;

namespace CodeCounsel.SharePoint.RibbonDesigner
{
    public class EditorDocView
        : WindowPane
    {
        MainView _control;

        public override object Content
        {
            get { return _control; }
        }

        internal EditorDocView(CommandUIModel uiModel, IServiceProvider serviceProvider) 
            : base(serviceProvider)
        {
            MasterViewModel viewModel = new MasterViewModel(uiModel);
            _control = new MainView(viewModel);
        }
    }
}
